# 构建一个随机数字变量
import random
num = random.randint(1,10)

guess_num = int(input('输入你要猜的数字'))

# 判断
if guess_num == num:
    print('你猜对了')
elif guess_num > num:
    print('你猜大了')
else:
    print('你猜小了')